import { StyleSheet } from 'react-native';
import { SCREEN_HEIGHT, SCREEN_WIDTH } from './constant';
import { getScreenInfo, ScreenOrientation } from './util/screen';

const { width } = getScreenInfo({
  screenOrientation: ScreenOrientation.Portrait
});

const screenWidth = Math.min(SCREEN_WIDTH, SCREEN_HEIGHT);

export default StyleSheet.create({
  container: {
    flex: 1,
    marginHorizontal: (screenWidth - width) / 2
  }
});
